<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品管理</title>
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <link rel="shortcut icon" href="../../../extends/img/favicon.ico" />
    <!-- Loading Bootstrap -->
    <link href="../../../extends/css/main.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="../../../assets/html5shiv.min.js"></script>
    <script src="../../../assets/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var require = {
            "config": {
                "site": {
                    "name": "xshop",
                    "cdnurl": "../../../",
                    "version": "1.0.0",
                },
                "upload": {
                    "cdnurl": "./",
                    "uploadurl": "/upload/file",
                    "multipart": {
                    }
                },
                "modulename": "biz",
                "controllername": "goods",
                "actionname": "edit",
                "jsname": "main/js/biz/goods",
                "moduleurl": "./",
                "language": "zh-cn",
                "referer": null
            }
        };
    </script>
</head>


<body class="inside-header inside-aside is-dialog">
       <div id="main" role="main">
           <div class="tab-content tab-addtabs">
               <div id="content">
                   <div class="row">
                       <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                           <div class="content">
		                        <form id="editForm" class="form-horizontal form-ajax" action="/goods" role="form" method="post" data-toggle="validator">
		                        	<div id="errtips" class="hide"></div>
		                        	<input type="hidden" name="id" />
		                        	<input type="hidden" name="enable" />
		                        	
		                        	<fieldset class="content-group">
		                                 <legend><i class="icon-grid6"></i> 商品信息</legend>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>所属商铺
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                       	<select name="storeId" class="form-control selectbox" data-rule="required">
		                                       	</select>
			                                </div>
		                                 </div>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>商品分类
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10 no-padding">
				                                <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
				                                   	<select name="typeIdI" class="form-control selectbox" data-rule="required">
				                                   	</select>
				                                </div>
				                                <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
				                                   	<select name="typeIdIi" class="form-control selectbox" >
				                                   	</select>
				                                </div>
				                                <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
				                                   	<select name="typeIdIii" class="form-control selectbox">
				                                   	</select>
												</div>
											</div>
										</div>
										
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品货号</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="goodsCode" class="form-control" placeholder="请输入商品货号">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>商品名称
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="goodsName" class="form-control" placeholder="请输入商品名称" data-rule="required">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>本店售价
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="salePrice" class="form-control" placeholder="请输入本店售价" data-rule="required,digits">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>市场价
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="goodsPrice" class="form-control" placeholder="请输入市场价" data-rule="required,digits">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	<span class="text-danger">*</span>商品库存
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="stock" class="form-control" placeholder="请输入商品库存" data-rule="required,digits">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品品牌</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                       	<select name="brandId" class="form-control selectbox">
		                                       	</select>
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品封面</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                    	<span  class=" plupload" id="upload1"  data-input-id="picture" data-preview-id="prev1" data-multiple="false"
											       data-url="/upload/temp/image" href="javascript:void(0);" data-mimetype='[{"extensions":"jpg,gif,png"}]'>
											        <a class="btn bg-teal add-btn">上传商品封面</a>
											    </span>
											    <span id="prev1"></span>
		                                        <input type="hidden" name="picture" id="picture">
			                                </div>
		                                 </div>
		                                 
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品轮播图</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                    	<span  class=" plupload" id="upload2"  data-input-id="imgs" data-preview-id="prev2" data-multiple="true"
											       data-url="/upload/temp/image" href="javascript:void(0);" data-mimetype='[{"extensions":"jpg,gif,png"}]'>
											        <a class="btn bg-teal add-btn">上传商品轮播图</a>
											    </span>
											    <span id="prev2"></span>
		                                        <input type="hidden" name="imgs" id="imgs">
			                                </div>
		                                 </div>
		                                 
		                                <!-- <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">详细描述</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <input type="text" name="detailDescription" class="summernote">
			                                </div>
		                                 </div> -->
		                                 <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品图片</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                    	<span  class=" plupload" id="upload3"  data-input-id="goodsImages" data-preview-id="prev3" data-multiple="true"
											       data-url="/upload/temp/image" href="javascript:void(0);" data-mimetype='[{"extensions":"jpg,gif,png"}]'>
											        <a class="btn bg-teal add-btn">上传商品图片</a>
											    </span>
											    <span id="prev3"></span>
		                                        <input type="hidden" name="goodsImages" id="goodsImages">
			                                </div>
		                                 </div>
		                                 <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">商品描述</label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                               			 <textarea rows="5" name="goodsDesc" class="form-control" placeholder="请输入商品描述" ></textarea>
			                                </div>
		                                 </div>
		                               </fieldset>
		                               
		                               <fieldset>
		                                 <legend><i class="icon-grid6"></i> 商品属性</legend>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	属性类型
		                                    </label>
		                                    <div class="col-xs-9 col-sm-9 col-md-10 col-lg-10">
		                                       	<select id="goodsType" class="form-control selectbox">
		                                       	</select>
			                                </div>
		                                 </div>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12" id="goodsTypeAttribute">
		                                </div>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2 text-right">
		                                    	属性信息
		                                    </label>
		                                    <div class="col-xs-10 col-sm-10 col-md-11 col-lg-11 no-padding" id="goodsAttribute">
		                                    </div>
		                                </div>
		                               </fieldset>
		                               
		                               <fieldset>
		                                 
		                                 <legend><i class="icon-grid6"></i> 附加信息</legend>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-2 col-md-2 col-lg-1 text-right">促销：</label>
		                                    <div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 radio-inline">
		                               			 <div class="radio inline">
		                                            <label>
		                                                 <input type="radio" name="isPromotion" class="styled chkN" value="0" checked="checked" data-biz-target="promotion">否
		                                            </label>
		                                        </div>
		                                        <div class="radio inline">
		                                            <label>
		                                               <input type="radio" name="isPromotion" class="styled chkY" value="1" data-biz-target="promotion">是
		                                            </label>
		                                        </div>
			                                </div>
		                                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 form-inline no-padding" id="promotion">
		                                    	<div class="input-group col-xs-4 col-sm-4 col-md-4 col-lg-4">
		                                            <input type="text" name="promotion.startTime" class="form-control datetimepicker" disabled="disabled" data-rule="required"
		                                                   placeholder="请输入开始日期" data-date-format="yyyy-mm-dd">
		                                            <span class="input-group-addon"><i class="icon-calendar22"></i></span>
		                                        </div>
		                                        <div class="input-group col-xs-4 col-sm-4 col-md-4 col-lg-4">
		                                            <input type="text" name="promotion.endTime" class="form-control datetimepicker" disabled="disabled" data-rule="required"
		                                                   placeholder="请输入结束日期" data-date-format="yyyy-mm-dd">
		                                            <span class="input-group-addon"><i class="icon-calendar22"></i></span>
		                                        </div>
		                                        <div class="input-group col-xs-3 col-sm-3 col-md-3 col-lg-3">
		                                        	<input type="text" name="promotion.price" class="form-control" placeholder="请输入促销价格" disabled="disabled" data-rule="required,digits">
		                                        </div>
		                                    </div>
		                                 </div>
		                                <div class="form-group col-xs-12 col-sm-12 col-md-12 col-lg-12">
		                                    <label class="control-label col-xs-3 col-sm-2 col-md-2 col-lg-1 text-right">限购：</label>
		                                    <div class="col-xs-3 col-sm-2 col-md-2 col-lg-2 radio-inline">
		                               			 <div class="radio inline">
		                                            <label>
		                                                 <input type="radio" name="isLimit" class="styled chkN" value="0" checked="checked" data-biz-target="limit">否
		                                            </label>
		                                        </div>
		                                        <div class="radio inline">
		                                            <label>
		                                               <input type="radio" name="isLimit" class="styled chkY" value="1" data-biz-target="limit">是
		                                            </label>
		                                        </div>
			                                </div>
		                                    <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 form-inline no-padding" id="limit">
		                                    	<div class="input-group col-xs-4 col-sm-4 col-md-4 col-lg-4">
		                                            <input type="text" name="limit.startTime" class="form-control datetimepicker" disabled="disabled" data-rule="required"
		                                                   placeholder="请输入开始日期" data-date-format="yyyy-mm-dd">
		                                            <span class="input-group-addon"><i class="icon-calendar22"></i></span>
		                                        </div>
		                                        <div class="input-group col-xs-4 col-sm-4 col-md-4 col-lg-4">
		                                            <input type="text" name="limit.endTime" class="form-control datetimepicker" disabled="disabled" data-rule="required"
		                                                   placeholder="请输入结束日期" data-date-format="yyyy-mm-dd">
		                                            <span class="input-group-addon"><i class="icon-calendar22"></i></span>
		                                        </div>
		                                        <div class="input-group col-xs-3 col-sm-3 col-md-3 col-lg-3">
		                                        	<input type="text" name="limit.limitNumber" class="form-control" placeholder="请输入限购数量" disabled="disabled" data-rule="required,digits">
		                                        </div>
		                                    </div>
		                                 </div>
									</fieldset>
		
		                            <div class="form-group layer-footer">
	                                    <label class="control-label col-xs-3 col-sm-3 col-md-2 col-lg-2"></label>
	                                    <div class="col-xs-8 col-sm-8 col-md-9 col-lg-9">
			                                <button type="reset" class="btn btn-default" id="reset">重置 <i
			                                        class="icon-reload-alt position-right"></i></button>
			                                <button type="submit" class="btn btn-primary submit disabled" disabled>提交 <i
			                                        class="icon-arrow-right14 position-right"></i></button>
			                             </div>
		                            </div>
		                        </form>
                           </div>
                       </div>
                   </div>
               </div>
           </div>
       </div>
	<!-- /页面容器 -->
    <script src="../../../assets/requirejs/require.js" data-main="../../../extends/js/main.js"></script>
</body>
</html>